import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index/index'
import spritejs from './../components/spritejs/router'
import pictureRelated from './../components/picture_related/router'
import jsNote from './../components/js_note/router'
import H5Game from './../components/H5_game/router'
import threes from './../components/3d/router'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      children: [
        spritejs,
        pictureRelated,
        ...jsNote,
        H5Game,
        threes
      ]
    }
  ]
})
